package com.hangxiang.approval.common;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class PageCommon extends Model<PageCommon> {

    @ApiModelProperty("每页显示条数")
    private Integer pageSize = 10;

    @ApiModelProperty("页码")
    @Min(value = 1,message = "页码起始值必须大于0")
    @NotNull(message = "页码不能为null")
    private Integer pageRow;
}
